package com.zzzy.doc.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * 公文各阶段意见
 *
 * @author fc
 * @since 2024-08-20
 */
@Getter
@Setter
@TableName("doc_advice")
@Schema(description = "公文各阶段意见")
public class DocAdvice {

    @Schema(description = "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "公文ID")
    @TableField("doc_id")
    private Long docId;

    @Schema(description = "操作人")
    @TableField("operator_name")
    private String operatorName;

    @Schema(description = "阶段：审核修订、会签、领导签发")
    @TableField("stage")
    private String stage;

    @Schema(description = "内容")
    @TableField("content")
    private String content;

    @Schema(description = "创建时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("create_time")
    private LocalDateTime createTime;
}
